from django.conf.urls import patterns, include, url
from myhotel.views import *

urlpatterns = patterns('',
                       url(r'^$', index , name='index'),
                       url(r'^accounts/', include('registration.backends.simple.urls')),
                       url(r'^register/$', register, name='register'),
                       url(r'^register/success/$', register_success),
                       url(r'^login/$', 'django.contrib.auth.views.login', name='login'),
                       url(r'^hotel/(?P<h_id>\d)/$', viewHotel),
                       url(r'^hotel/(?P<h_id>\d)/offers$', viewOffers),
                       url(r'^hotel/(?P<h_id>\d)/book/(?P<o_id>\d)/$', checkBook),
                       url(r'^book/(?P<o_id>\d)/confirm/$', confirm),

)
